package com.dzl.goods.dao;

import com.dzl.base.mapper.BaseMapper;
import com.dzl.goods.pojo.WelfareGoodsLabel;
import com.dzl.goods.pojo.query.WelfareGoodsLabelQuery;
import com.dzl.goods.pojo.vo.WelfareGoodsLabelVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 商品标签表(WelfareGoodsLabel)表数据库访问层
 * @author wangjian
 * @date 2021-08-02 09:34:21
 */
@Repository
public interface WelfareGoodsLabelMapper extends BaseMapper<WelfareGoodsLabel> {

    /**
     * 筛选查询商品标签列表
     * @date 2021/8/2 0002 10:18
     * @author wangjian
     * @param query 查询条件
     * @return java.util.List<com.dzl.goods.pojo.vo.WelfareGoodsLabelVo>
     */
    List<WelfareGoodsLabelVo> queryGoodsLabelListData(WelfareGoodsLabelQuery query);

    /**
     * 商品标签置顶
     * @param labelId 标签ID
     * @author liuguanjun
     * @date 2021-12-17 16:13:21
     **/
    Integer updateGoodsLabelToTop(@Param("labelId") Integer labelId);

    /**
     * 商品标签取消置顶
     * @param labelId 标签ID
     * @author liuguanjun
     * @date 2021-12-17 16:13:23
     **/
    Integer updateGoodsLabelCancelTop(@Param("labelId") Integer labelId);

}